package com.wyy.travels.dao;/*
 **
 * @author yangyang
 *@date 2022/07/21 20:55
 **/

import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface BaseDao<T,K> {


    void  save(T t);
    void  update(T t);
    void  delete(K k);
    List<T> findAll();
    List<T> findByPage(@Param("start") Integer start,@Param("rows") Integer rows);
    Integer  findToals();
    T findOne(K k);

}
